package com.example.kotlindemo.协程

import java.util.concurrent.LinkedBlockingQueue

typealias ET =  ()->Unit
class BlockingQueueDispatcher:LinkedBlockingQueue<ET>(),Dispatcher {
    override fun dispatch(block: () -> Unit) {
       offer(block)
    }

    
}